package com.itheima.test;

public class Demo04 {

    public static void main(String[] args) {
        Teacher teacher = new Teacher();
        teacher.age=30;
teacher.dance();
        Teacher teacher1 = new Teacher();
        teacher1.age=40;

        teacher1.dance();
        teacher.dance();
    }
}
